/**
 * @param {JSEvent} event
 *
 * @properties={typeid:24,uuid:"C8C03641-FF6A-4C13-A95A-F9FF89B0CF59"}
 */
function menu(event){
	
	var popUpMenu = plugins.window.createPopupMenu();
	popUpMenu.addMenuItem("Refrescar Tablas", scopes.adm_t900_tablas.refrescar_tablas);

	if (event.getSource()) {
		popUpMenu.show(event.getSource());
	}
}

/**
 * @properties={typeid:24,uuid:"2A16BDED-920A-46EA-9808-5F60FE5A25D8"}
 * @AllowToRunInFind
 */
function buscar(){
	
	if (foundset.find()){
		foundset.s_descripcion = "#%" + $texto_busqueda + "%";
		foundset.newRecord();
		foundset.s_nombre_tabla = "#%" + $texto_busqueda + "%";
		foundset.search();
	}
}
